{extend name="base" /}
{block name="main"}
<div class="l-loading" style="display: block" id="htr-loading"></div>
<form id='editFrom' autocomplete='off'>
<input type='hidden' id='goodsId' class='ipt' value="{$object['goodsId']}"/>
<table class='htr-form htr-box-top'>
  <tr>
     <th width='150'>产品编号<font color='red'>*</font>：</th>
     <td><input type="text" id='goodsSn' name='goodsSn' class='ipt' value="{$object['goodsSn']}" maxLength='20' data-rule="产品编号: required;"/></td>
  </tr>
  <tr>
     <th>产品名称<font color='red'>*</font>：</th>
     <td><input type="text" id='goodsName' class='ipt' style='width:500px;' value="{$object['goodsName']}" maxLength='50' data-rule="产品名称: required;"/></td>
  </tr>
  <tr>
     <th>成本价格<font color='red'>*</font>：</th>
     <td><input type="text" id='costPrice' class='ipt' value="{$object['costPrice']}" maxLength='20' data-rule="成本价格: required"/></td>
  </tr>
  <tr>
     <th>销售价格<font color='red'>*</font>：</th>
     <td><input type="text" id='salePrice' class='ipt' value="{$object['salePrice']}" maxLength='20' data-rule="销售价格: required"/></td>
  </tr>
  <tr>
     <th>产品单位<font color='red'>*</font>：</th>
     <td><input type="text" id='goodsUnit' class='ipt' value="{$object['goodsUnit']}" maxLength='20' data-rule="产品单位: required"/></td>
  </tr>
  <tr>
     <th>缺货警告<font color='red'>*</font>：</th>
     <td><input type="text" id='cautionNum' class='ipt' value="{$object['cautionNum']}" maxLength='20' data-rule="缺货警告: required"/></td>
  </tr>
  <tr>
     <td colspan='2' align='center'>
       <input type='button' value='保存' class='btn btn-blue' onclick='javascript:save()'>
       <input type='button' value='返回' class='btn' onclick='javascript:history.go(-1)'>
     </td>
  </tr>
</table>
</form>
{/block}
{block name="js"}
<script src="__INDEX__/goods/goods.js?v={$v}" type="text/javascript"></script>
{/block}